home *** CD-ROM | disk | FTP | other *** search
Makefile | 1991-06-17 | 8.0 KB | 192 lines |
- # @(#)Makefile.3b1 1.2 6/16/91 19:43:12
- #
- # Copyright (c) 1988 Regents of the University of California.
- # All rights reserved.
- #
- # Redistribution and use in source and binary forms are permitted
- # provided that the above copyright notice and this paragraph are
- # duplicated in all such forms and that any documentation,
- # advertising materials, and other materials related to such
- # distribution and use acknowledge that the software was developed
- # by the University of California, Berkeley. The name of the
- # University may not be used to endorse or promote products derived
- # from this software without specific prior written permission.
- # THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
- # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
- # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
- #
- # @(#)Makefile 5.11 (Berkeley) 1/3/89
- #
- # Makefile for sendmail on AT&T 3B1 using WIN/TCP network library, gcc, shared library.
- # Your mileage may vary.
- all: sendmail
-
- HDRS= conf.h mailstats.h sendmail.h useful.h
- SRCS= alias.c arpadate.c clock.c collect.c conf.c convtime.c daemon.c \
- deliver.c domain.c envelope.c err.c getloadavg.c headers.c \
- macro.c main.c parseaddr.c queue.c readcf.c recipient.c \
- savemail.c srvrsmtp.c stab.c stats.c sysexits.c trace.c \
- usersmtp.c util.c ../ida/charset/strcnv.c flock.c setenv.c \
- vprintf.c version.c
- OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \
- deliver.o domain.o envelope.o err.o getloadavg.o headers.o \
- macro.o main.o parseaddr.o queue.o readcf.o recipient.o \
- savemail.o srvrsmtp.o stab.o stats.o sysexits.o trace.o \
- usersmtp.o util.o strcnv.o flock.o setenv.o vprintf.o version.o
- MAN= sendmail.0 newaliases.0 aliases.0
-
- LIBDIR= /usr/local/lib/mail
-
- CC =gcc -g -fcombine-regs -fstrength-reduce -fpcc-struct-return -Wall #-ansi -pedantic
- INCL =-I/usr/local/lib/gcc-include -I. -I/usr/ethernet/include -I../support
- CFLAGS =-O $(INCL)
- LDFLAGS = -s
-
- WHAT= what
-
- 3B1SRCS =flock.c ../support/strcasecmp.c syslog.c ../support/strerror.c
- 3B1OBJS =flock.o strcasecmp.o syslog.o strerror.o
- COBJS= #vsprintf.o doprnt.o
-
- .PRECIOUS: sendmail
-
- sendmail: ${OBJS} datecompiled.o version.o $(3B1OBJS) $(COBJS) shlib.ifile
- ${LD} ${LDFLAGS} -o $@ `lorder /lib/crt0s.o ${OBJS} datecompiled.o version.o $(3B1OBJS) $(COBJS) | tsort` -lgdbm -lnet -ldirent /usr/local/lib/gcc-gnulib shlib.ifile
- size sendmail; ls -l sendmail; ${WHAT} < version.o ; rm -f datecompiled.?
-
- mkdep: ${SRCS}
- @gcc -MM ${INCL} $(SRCS)
-
- cflow.out: ${SRCS} ${3B1SRCS} datecompiled.c version.c
- cflow -ix -Dunixpc -D__GNUC__ ${INCL} $(SRCS) ${3B1SRCS} datecompiled.c version.c >$@
-
- setvbuf.o lockf.o vsprintf.o vfprintf.o doprnt.o: /lib/libc.a
- ar -x $? $@
-
- shlib.ifile: /lib/shlib.ifile
- egrep -v "sys_errlist|sys_nerr|perror|message" $? >$@
-
- # this looks wierd but it works -- the object file may be created here or be in ../support
- rename.o strcasecmp.o strerror.o: ../support/$$@ sendmail.h conf.h config/3b1.h
- -ln ../support/$@ .
- -ln $@ ../support
- #syslog.o: S5/$$@ S5/syslog.c sendmail.h conf.h config/3b1.h
- # -ln S5/$@ .
- # -ln $@ S5
-
- dsendmail: ${OBJS} datecompiled.o version.o
- ${LD} -o sendmail `lorder /lib/crt0.o ${OBJS} datecompiled.o version.o | tsort` -lgdbm -lnet -ldirent /usr/local/lib/gcc-gnulib -lg -lc -ltam
- size sendmail; ls -l sendmail; ${WHAT} < version.o ; rm -f datecompiled.?
-
- dsendmail2: ${OBJS} datecompiled.o version.o
- ${LD} -o sendmail `lorder /lib/crt0.o ${OBJS} datecompiled.o version.o | tsort` -lgdbm -lnet -ldirent -lmalloc /usr/local/lib/gcc-gnulib -lg -lc -ltam
- size sendmail; ls -l sendmail; ${WHAT} < version.o ; rm -f datecompiled.?
-
- datecompiled.c:
- echo 'char datecompiled[] = "' `date` '";' >datecompiled.c
-
- strcnv.o: ../ida/charset/strcnv.c
- ${CC} ${CFLAGS} -DMAPDIR=\"${DESTDIR}/${LIBDIR}/char\" -c \
- ../ida/charset/strcnv.c
-
- #install: ${MAN}
- # install -c -s -o root -g kmem -m 6755 sendmail ${DESTDIR}/usr/lib
- # install -c -o bin -g bin -m 644 /dev/null ${DESTDIR}/usr/lib/sendmail.fc
- # install -c -o bin -g bin -m 666 /dev/null ${DESTDIR}/usr/lib/sendmail.st
- # install -c -o bin -g bin -m 666 /dev/null ${DESTDIR}/usr/lib/sendmail.st
- # install -c -o bin -g bin -m 444 sendmail.hf /usr/lib/sendmail.hf
- # install -c -o bin -g bin -m 444 sendmail.0 ${DESTDIR}/usr/man/cat8
- # install -c -o bin -g bin -m 444 aliases.0 ${DESTDIR}/usr/man/cat5
- # install -c -o bin -g bin -m 444 newaliases.0 ${DESTDIR}/usr/man/cat1
- # -mkdir ${DESTDIR}/usr/spool/mqueue
- # chown root.wheel ${DESTDIR}/usr/spool/mqueue
- # chmod 775 ${DESTDIR}/usr/spool/mqueue
- # rm -f ${DESTDIR}/usr/ucb/newaliases
- # ln -s ${DESTDIR}/usr/lib/sendmail ${DESTDIR}/usr/ucb/newaliases
- # rm -f ${DESTDIR}/usr/ucb/mailq
- # ln -s ${DESTDIR}/usr/lib/sendmail ${DESTDIR}/usr/ucb/mailq
-
- version: newversion ${OBJS} version.c
-
- #newversion:
- # @rm -f SCCS/p.version.c version.c
- # @${GET} -e SCCS/s.version.c
- # @${DELTA} -s SCCS/s.version.c
- # @${GET} -t -s SCCS/s.version.c
-
- #Version.c: version.c
- # @echo generating Version.c from version.c
- # @cp version.c Version.c
- # @chmod 644 Version.c
- # @echo "" >> Version.c
- # @echo "# ifdef COMMENT" >> Version.c
- # @${PRT} SCCS/s.version.c >> Version.c
- # @echo "" >> Version.c
- # @echo "code versions:" >> Version.c
- # @echo "" >> Version.c
- # @${WHAT} ${OBJS} >> Version.c
- # @echo "" >> Version.c
- # @echo "# endif COMMENT" >> Version.c
-
- # deget is a script that rm's a file iff there's an s.file but no p.file in the same directory
- clean:
- rm -f *.o core *.out shlib.ifile ../support/*.o makelog *.mon
- deget ?[!.]*.[ch] ../support/?[!.]*.[ch]
-
- cleandir: clean
- rm -f ${MAN} tags .depend
-
- depend: ${SRCS}
- mkdep ${CFLAGS} ${SRCS}
-
- tags: ${SRCS}
- ctags ${SRCS}
-
- lint: ${SRCS}
- lint -chapbx ${CCONFIG} ${SRCS}
-
- alias.o : alias.c sendmail.h conf.h config/3b1.h useful.h flock.h def.h
- arpadate.o : arpadate.c sendmail.h conf.h config/3b1.h useful.h flock.h \
- def.h
- clock.o : clock.c sendmail.h conf.h config/3b1.h useful.h flock.h def.h
- collect.o : collect.c sendmail.h conf.h config/3b1.h useful.h flock.h def.h
- conf.o : conf.c sendmail.h conf.h config/3b1.h useful.h flock.h def.h
- convtime.o : convtime.c sendmail.h conf.h config/3b1.h useful.h flock.h \
- def.h
- daemon.o : daemon.c sendmail.h conf.h config/3b1.h useful.h flock.h def.h
- deliver.o : deliver.c sendmail.h conf.h config/3b1.h useful.h flock.h def.h
- domain.o : domain.c sendmail.h conf.h config/3b1.h useful.h flock.h def.h
- envelope.o : envelope.c sendmail.h conf.h config/3b1.h useful.h flock.h \
- def.h
- err.o : err.c sendmail.h conf.h config/3b1.h useful.h flock.h def.h
- getloadavg.o : getloadavg.c conf.h config/3b1.h sendmail.h useful.h flock.h \
- def.h
- headers.o : headers.c sendmail.h conf.h config/3b1.h useful.h flock.h def.h
- macro.o : macro.c sendmail.h conf.h config/3b1.h useful.h flock.h def.h
- main.o : main.c sendmail.h conf.h config/3b1.h useful.h flock.h def.h
- parseaddr.o : parseaddr.c sendmail.h conf.h config/3b1.h useful.h flock.h \
- def.h
- queue.o : queue.c sendmail.h conf.h config/3b1.h useful.h flock.h def.h
- readcf.o : readcf.c sendmail.h conf.h config/3b1.h useful.h flock.h def.h
- recipient.o : recipient.c sendmail.h conf.h config/3b1.h useful.h flock.h \
- def.h
- savemail.o : savemail.c sendmail.h conf.h config/3b1.h useful.h flock.h \
- def.h
- srvrsmtp.o : srvrsmtp.c sendmail.h conf.h config/3b1.h useful.h flock.h \
- def.h
- stab.o : stab.c sendmail.h conf.h config/3b1.h useful.h flock.h def.h
- stats.o : stats.c sendmail.h conf.h config/3b1.h useful.h flock.h def.h \
- mailstats.h
- sysexits.o : sysexits.c
- trace.o : trace.c sendmail.h conf.h config/3b1.h useful.h flock.h def.h
- usersmtp.o : usersmtp.c sendmail.h conf.h config/3b1.h useful.h flock.h \
- def.h
- util.o : util.c sendmail.h conf.h config/3b1.h useful.h flock.h def.h
- strcnv.o : ../ida/charset/strcnv.c ./sendmail.h ./conf.h ./config/3b1.h \
- ./useful.h ./flock.h ./def.h
- flock.o : flock.c sendmail.h conf.h config/3b1.h useful.h flock.h def.h
- setenv.o : setenv.c sendmail.h conf.h config/3b1.h useful.h flock.h def.h
- vprintf.o : vprintf.c sendmail.h conf.h config/3b1.h useful.h flock.h def.h
- version.o : version.c conf.h config/3b1.h
- syslog.o: syslog.c sendmail.h conf.h config/3b1.h useful.h def.h
-